﻿using B.S.RbacData.ErrorCode;
using ContentmanagementBase.Domain;
using ContentmanagementBaseRead.API.Dtos;
using MediatR;

namespace ContentmanagementBaseRead.API.Applications.Commands
{
    /// <summary>
    /// 获取轮播图信息列表命令
    /// </summary>
    public class GetCarouselCommand : IRequest<ApiPaging<List<CarouelChartDtos>>>
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页数量
        /// </summary>
        public int PageSize { get; set; } = 4;

        /// <summary>
        /// 开始时间
        /// </summary>
        public string? startTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string? endTime { get; set; }

        /// <summary>
        /// 轮播图标题（搜索条件）
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 轮播图状态（搜索条件）
        /// </summary>
        public bool? Status { get; set; }
    }
}
